package com.atguigu.cloud.sevice;

import com.atguigu.cloud.entities.Order;
import com.atguigu.cloud.tool.load.page.PaginationInterface;
import com.atguigu.cloud.tool.load.page.PaginationResult;

import java.util.List;

/**
 * @Auter zzh
 * @Date 2024/11/13
 */
public interface OrderService extends PaginationInterface<Order> {
    Order getById(Integer id);

    //根据userid查询
    List<Order> getByUserid(Integer userid);

    List<Order> getAll();
    int add(Order order);
    int delete(Integer id);
    int update(Order order);

    PaginationResult<Order> paginationQueryByUserid(Integer userid,Integer currentPage);


}
